import os.path
import sys

# check if a file exists

print(os.path.exists('flowers.py'))

from pathlib import Path

path = Path('tuple.py')

print(path.is_file())